﻿<%@ Page Language="VB" MasterPageFile="~/WebForm/MasterPage.master" AutoEventWireup="false"
    CodeFile="ExecVolunteer.aspx.vb" Inherits="WebForm_ExecVolunteer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table width="95%" align="center">
        <tr>
            <td align="center">
                <asp:Label ID="Title" runat="server" SkinID="title" meta:resourcekey="Title"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Panel ID="Panel1" runat="server" GroupingText="更新志工帳號" Width="95%" Font-Size="10pt">
                    <table width="95%">
                        <tr>
                            <td colspan="4">
                                <asp:Label ID="lblState1" runat="server" Text="說明：更新前請再次確認" ForeColor="Red"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" width="18%">
                                <asp:Label ID="lblOrg" runat="server" Text="更新前的志工帳號："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtOrgID" runat="server" MaxLength="10"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtOrgID"
                                    Display="None" ErrorMessage="請輸入更新前的志工帳號" ValidationGroup="VolunteerIDUpdate"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtOrgID"
                                    Display="None" ErrorMessage="志工帳號必須為十碼" ValidationExpression="\w{10}" ValidationGroup="VolunteerIDUpdate"></asp:RegularExpressionValidator>
                            </td>
                            <td align="right" width="18%">
                                <asp:Label ID="lblNew" runat="server" Text="更新後的志工帳號："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtNewID" runat="server" MaxLength="10"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtNewID"
                                    Display="None" ErrorMessage="請輸入更新前的志工帳號" ValidationGroup="VolunteerIDUpdate"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtNewID"
                                    Display="None" ErrorMessage="志工帳號必須為十碼" ValidationExpression="\w{10}" ValidationGroup="VolunteerIDUpdate"></asp:RegularExpressionValidator>
                                <asp:Button ID="Button1" runat="server" Text="更新" ValidationGroup="VolunteerIDUpdate" />
                                <ajaxToolkit:ConfirmButtonExtender ID="cbSave" runat="server" TargetControlID="Button1"
                                    ConfirmText="是否更新?">
                                </ajaxToolkit:ConfirmButtonExtender>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
                <br />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Panel ID="Panel2" runat="server" GroupingText="刪除志工帳號" Width="95%" Font-Size="10pt">
                    <table width="95%">
                        <tr>
                            <td colspan="4">
                                <asp:Label ID="Label1" runat="server" Text="說明：刪除前請再次確認" ForeColor="Red"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" width="18%">
                                <asp:Label ID="lblDelete" runat="server" Text="欲刪除的志工帳號："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtDeleteID" runat="server" MaxLength="10"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtDeleteID"
                                    Display="None" ErrorMessage="請輸入欲刪除的志工帳號" ValidationGroup="VolDelete"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtDeleteID"
                                    Display="None" ErrorMessage="志工帳號必須為十碼" ValidationExpression="\w{10}" ValidationGroup="VolDelete"></asp:RegularExpressionValidator>
                                <asp:Button ID="Button2" runat="server" Text="刪除" ValidationGroup="VolDelete" />
                                <ajaxToolkit:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" TargetControlID="Button2"
                                    ConfirmText="是否刪除?">
                                </ajaxToolkit:ConfirmButtonExtender>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
    </table>
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
        ShowSummary="False" ValidationGroup="VolunteerIDUpdate" />
    <asp:ValidationSummary ID="ValidationSummary2" runat="server" ShowMessageBox="True"
        ShowSummary="False" ValidationGroup="VolDelete" />
</asp:Content>
